<?php
namespace App\Controllers\Test;
use App\Models\Goods\Goods;
class Test extends \App\Libs\Base\BaseAction
{
    protected function beforeRun() {
	parent::beforeRun();
    }
	
    protected function execute() {
	phpinfo();die;
	$data = Goods::findAll([
            'conditions' => 'sid IN ({params:array})',
            'columns' =>'id,sid,goods_name,goods_price,sale_price,goods_sold',
            'bind' => ['params'=>[1,2,3,4] ]
        ]);

        $goodsArray=[];
        $data->rewind();
        while($data->valid()){
	    $curGoods = $data->current();
            print_r($curGoods->toArray());
            $data->next();
        }
   



 }
}
